import req from '@/utils/request'
import reqMock from '@/utils/requestMock'
import { HomeResponseDataType, ImgUrlType } from './getRecommendType'

export const getRecommendApi = () => {
  return req.get<null, HomeResponseDataType>('/getRecommend')
}

export const getImgurlApi = (id: string) => {
  return req.get<null, ImgUrlType>(`/getImageUrl?id=${id}`)
}
export const getHomeToplistApi = () => {
  // 接口错了？？淦
  return req.get<null, null>('/getTopLists')
}

// 测试模拟数据
export const testMockApi = () => {
  return reqMock.get('/test')
}
